import request from '@/utils/request'

// 查询研判报警列表
export function listJudgeAlarm(query) {
  return request({
    url: '/basicInformation/judgeAlarm/list',
    method: 'get',
    params: query
  })
}
// 查询研判报警列表
export function listForMap(query) {
  return request({
    url: '/basicInformation/judgeAlarm/listForMap',
    method: 'get',
    params: query
  })
}
// 查询研判报警详细
export function getJudgeAlarm(id) {
  return request({
    url: '/basicInformation/judgeAlarm/' + id,
    method: 'get'
  })
}

// 新增研判报警
export function addJudgeAlarm(data) {
  return request({
    url: '/basicInformation/judgeAlarm',
    method: 'post',
    data: data
  })
}

// 修改研判报警
export function updateJudgeAlarm(data) {
  return request({
    url: '/basicInformation/judgeAlarm',
    method: 'put',
    data: data
  })
}

// 删除研判报警
export function delJudgeAlarm(id) {
  return request({
    url: '/basicInformation/judgeAlarm/' + id,
    method: 'delete'
  })
}

// 导出研判报警
export function exportJudgeAlarm(query) {
  return request({
    url: '/basicInformation/judgeAlarm/export',
    method: 'get',
    params: query
  })
}
